package com.xingxue.service.impl;

import com.xingxue.dao.ClientDao;
import com.xingxue.service.ClientService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List;

/**
 * @author zgx at 2018/10/23 0023 下午 12:02
 */
@Service
public class ClientServiceImpl implements ClientService {
    @Autowired
    ClientDao clientDao;

    @Override
    public List<HashMap<String,Object>> search() {
        return this.clientDao.search();
    }

    @Override
    public Integer add(HashMap<String, Object> param) {
        return this.clientDao.add(param);
    }

    @Override
    public Integer updateByID(HashMap<String, Object> param) {
        return this.clientDao.updateById(param);
    }

    @Override
    public Integer deleteByID(HashMap<String, Object> param) {
        return this.clientDao.deleteById(param);
    }

    @Override
    public Integer deleteCheckedByID(List<String> param) {
        return this.clientDao.deleteCheckedByID(param);
    }
}
